import { request } from "@/utils/request.js"

// 添加动作(点赞，关注等)
export function actionAction(data = {}) {
	return request({
		url: '/user/action/action',
		data,
		method: 'POST',
		showMsg: true
	})
}

// 取消动作(取消点赞，取消关注等)
export function actionDelAction(data = {}) {
	return request({
		url: '/user/action/delAction',
		data,
		method: 'POST',
		showMsg: true
	})
}

// 举报
export function actionReport(data = {}) {
	return request({
		url: '/user/action/report',
		data,
		method: 'POST',
		showMsg: true
	})
}

// 签到
export function actionSign(data = {}) {
	return request({
		url: '/user/action/sign',
		data,
		method: 'POST',
		showMsg: true
	})
}

// 检测签到
export function actionCheckSign(data = {}) {
	return request({
		url: '/user/action/checkSign',
		data,
		method: 'POST'
	})
}